import { Connection } from 'typeorm';
import { Mode } from './entities/mode.entity'

export const modeProviders = [
  {
    provide: 'MODE_REPOSITORY',
    useFactory: (connection: Connection) => connection.getRepository(Mode),
    inject: ['DATABASE_CONNECTION'],
  },
];